package com.cal.utms.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;

/**
 * The persistent class for the redemption_req_to_redemtion database table.
 * 
 */
@Entity
@Table(name = "redemption_req_to_redemtion")
@NamedQuery(name = "RedemptionReqToRedemtion.findAll", query = "SELECT r FROM RedemptionReqToRedemtion r")
public class RedemptionReqToRedemtion implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;

	@Column(name = "BALANCE")
	private BigDecimal balance;

	@Column(name = "RELEASE_AMOUNT")
	private BigDecimal releaseAmount;

	@Column(name = "RELEASE_UNITS")
	private BigDecimal releaseUnits;

	@ManyToOne
	@JoinColumn(name = "INVENSTMENT_ID")
	private CustomerInvestment customerInvestment;

	@ManyToOne
	@JoinColumn(name = "REDEMPTION_REQ_ID")
	private CustomerRedemptionRequest customerRedemptionRequest;

	public RedemptionReqToRedemtion() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BigDecimal getBalance() {
		return this.balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public BigDecimal getReleaseAmount() {
		return this.releaseAmount;
	}

	public void setReleaseAmount(BigDecimal releaseAmount) {
		this.releaseAmount = releaseAmount;
	}

	public BigDecimal getReleaseUnits() {
		return this.releaseUnits;
	}

	public void setReleaseUnits(BigDecimal releaseUnits) {
		this.releaseUnits = releaseUnits;
	}

	public CustomerInvestment getCustomerInvestment() {
		return this.customerInvestment;
	}

	public void setCustomerInvestment(CustomerInvestment customerInvestment) {
		this.customerInvestment = customerInvestment;
	}

	public CustomerRedemptionRequest getCustomerRedemptionRequest() {
		return this.customerRedemptionRequest;
	}

	public void setCustomerRedemptionRequest(CustomerRedemptionRequest customerRedemptionRequest) {
		this.customerRedemptionRequest = customerRedemptionRequest;
	}

}